package com.ktg.mes.wm.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ktg.mes.md.domain.MdItem;
import com.ktg.mes.util.LeftJoin;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 物料组装入库对象 wm_assemble_recpt_line
 *
 * @author byteco
 * @date 2023-01-04
 */

@Data
@Accessors(chain = true)
@TableName("wm_assemble_recpt_line")
public class WmAssembleRecptLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行ID */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;


    /** 入库单行ID */
    @Excel(name = "入库单行ID")
    private Long itemRecptLineId;


    /** 来源ID */
    @Excel(name = "来源入库ID")
    private Long fromItemRecptLineId;


    /** 产品物料ID */
    @Excel(name = "产品物料ID")
    @LeftJoin(leftTable ="md_item",leftTableColumn = "item_id",selectColumn = MdItem.mainSelectColumnNotId)
    private Long itemId;

    /** 入库批次号 */
    @Excel(name = "入库批次号")
    private String batchCode;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    @LeftJoin(leftTable = "wm_warehouse",leftTableColumn = "warehouse_id",selectColumn = WmWarehouse.mainColumnNotId)
    private Long warehouseId;

    /**
     *  物料编码
     */
    @Excel(name = " 物料编码")
    private  String meterialCode;


    /** 数量 */
    @Excel(name = "入库数量")
    private BigDecimal quantityRecived;

    /** 数量 */
    @Excel(name = "使用数量")
    private BigDecimal quantityOut;


    /** 客戶产品需求ID */
    @Excel(name = "客戶产品需求ID")
    private Long needItemId;

}
